package movie.test.as.order.biz;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSONObject;

import movie.test.as.order.dao.OrderDao;
import movie.test.common.BaseBiz;

@Component
public class OrderBiz extends BaseBiz {

	@Autowired
	private OrderDao orderDao;

	public void addOrderInfo(JSONObject objs) {

		 orderDao.addOrderInfo(objs);
	}

	public List<Map<String, Object>> getOrderByUserId(Integer id) {
		
		return orderDao.getOrderByUserId(id);
		
	}

	public int updateOrderById(JSONObject objs) {
		
		return orderDao.updateOrderById(objs);
	}

	public int updateSubmitOrderById(JSONObject objs) {
		
		return orderDao.updateSubmitOrderById(objs);
	}

	

	public List<Map<String, Object>> getOrderListsByUserId(Integer id) {
		
		return orderDao.getOrderListsByUserId(id);
	}

}
